package org.ami.onlineschool.dataAccess;

import java.io.FileNotFoundException;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class EnrolmentDataAccess extends AbstractDataAccess<Map<String, List<String>>> {

	private static final String ENROLMENT_XML_FILE = "/enrolment.xml";

	public EnrolmentDataAccess(String dirPath) {
		super(dirPath, ENROLMENT_XML_FILE);
	}

	@Override
	protected Map<String, List<String>> initializeTargetObject() {
		return new LinkedHashMap<String, List<String>>();
	}
	
	public Map<String, List<String>> getEnrolmentData() {
		return getTargetObject();
	}
	
	public void saveEnrolmentDataOnDisk() throws FileNotFoundException {
		saveTargetObjectToDisk();
	}
	
}
